package com.whfc.fmam.entity.qo;

import com.whfc.fmam.entity.dto.FmamMatUnitDTO;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author sun_guodong
 * @description
 * @date 2019-11-20
 */
@Data
public class MatAddQO implements Serializable {
    @NotEmpty
    @Length(max = 4)
    private String code;
    @NotEmpty
    private String fullCode;
    @NotEmpty
    private String name;
    @NotNull
    private Long matTypeId;
    @NotNull
    private Integer deptId;
    private String spec;
    private String model;
    private String texture;
    @NotNull
    private Integer unitId;
    @NotEmpty
    private String unitName;
    private Double plusDiff;
    private Double minusDiff;
    private Integer diffType;
    private String remark;
    private List<FmamMatUnitDTO> unitList;
}
